/*
============================================================================
 Name        : dd_utf8.h
 Author      : Jian
 Version     :
 Copyright   : GPL
 Description : dd_utf8.h - header file
============================================================================
*/

#ifndef DD_UTF8_H
#define DD_UTF8_H

/* INCLUDES */
#include "dd_define.h"

__DD_BEGIN_DECLS

/* the pointer of ucs2 don't need to align in 2 byte */
DD_UTF8* dd_ucs2_to_utf8(const DD_WCHAR* ucs2) ;

/* the pointer of beUcs2 don't need to align in 2 byte */
DD_UTF8* dd_ucs2_be_to_utf8(const DD_WCHAR* beUcs2) ;

DD_WCHAR* dd_utf_to_ucs2(const DD_UTF8* utf8) ;

/* the pointer of ucs2 don't need to align in 2 byte */
int dd_usc2_len(const DD_WCHAR* ucs2) ;

/* the pointer of ucs2 don't need to align in 2 byte */
const DD_WCHAR* dd_ucs2chr(const DD_WCHAR* ucs2, DD_WCHAR chr) ;

const DD_WCHAR* dd_ucs2chr_by_len(const DD_WCHAR* ucs2, int len, DD_WCHAR chr) ;

__DD_END_DECLS

#endif  /* DD_UTF8_H */

/* End of File */
